<?
include ("../php/conni.php");
//获取CUST的项目
$query="select * from cust_item order by item asc";
if($result=$conni->query($query))
{
	$i=0;
	while($row=$result->fetch_assoc())
	{
		$cust_item[$i]=$row;
		$i++;
	}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="../js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../js/json2.js"></script>
<script type="text/javascript" src="../js/pub.js"></script>

<link href="../css/pub.css" rel="stylesheet" type="text/css" />

<link href="../css/cust.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/cust.js"></script>

<body>
	<!--[if ie6]> 外框 <![endif]-->
	<div class="cust_body">

		<!--[if ie6]> 顶部筛选条件外框 <![endif]-->
		<div class="cust_s_body">
			<div class="cust_s_text_1">
				客户类型:
			</div>
			<div class="cust_s_text_1">

				<select id="type" style="width:80px;height:30px;line-height:30px;margin:10px 0 0 0;font-size:14px;font-family:'微软雅黑','宋体','Tahoma','SimSun','Arial';">
					<option value="">任意</option>
					<?
					for($i=0;$i<count($cust_item);$i++)
					{
						if($cust_item[$i][item]=='cust_type')
						{
					?>
							<option value="<?=$cust_item[$i][val];?>"><?=$cust_item[$i][text];?></option>
					<?
						}
					}
					?>
				</select>
				

			</div>
			<!--[if ie6]> 分割 <![endif]-->
			<div class="cust_s_fg_1">
			</div>
			<div class="cust_s_text_1">
				姓名:
			</div>
			<div class="cust_s_text_1">
				<input type="text" class="pub_text_1 cust_s_in_text_1" id="name"/>

			</div>
			<!--[if ie6]> 分割 <![endif]-->
			<div class="cust_s_fg_1">
			</div>

			<div class="cust_s_text_1">
				公司:
			</div>
			<div class="cust_s_text_1">
				<input type="text" class="pub_text_1 cust_s_in_text_1" id="company" />

			</div>
			<!--[if ie6]> 分割 <![endif]-->
			<div class="cust_s_fg_1">
			</div>
			
			<div class="cust_s_text_1">
				号码:
			</div>
			<div class="cust_s_text_1">
				<input type="text" class="pub_text_1 cust_s_in_text_1" id="num" />

			</div>
			<!--[if ie6]> 分割 <![endif]-->
			<div class="cust_s_fg_1">
			</div>

			<div class="cust_s_text_1">
				地区:
			</div>
			<div class="cust_s_text_1">
				<input type="text" class="pub_text_1 cust_s_in_text_1" id="area"/>

			</div>
			<!--[if ie6]> 分割 <![endif]-->
			<div class="cust_s_fg_1">
			</div>
		</div>


		<!--[if ie6]> 按钮 <![endif]-->
		<div class="cust_top_menu_body">
			<div class="cust_s_text_1">
				排序:
			</div>
			<div class="cust_s_text_1">
				<select id="orde" style="width:80px;height:30px;line-height:30px;margin:10px 0 0 0;font-size:14px;font-family:'微软雅黑','宋体','Tahoma','SimSun','Arial';">
					<option value="id">录入顺序</option>
					<option value="type">客户类型</option>
					<option value="visit_num">拜访次数</option>
					<option value="visit_sum">拜访开销</option>
				
				</select>

			</div>
			<div class="cust_s_text_1">
				<select id="sc_orde" style="width:80px;height:30px;line-height:30px;margin:10px 0 0 0;font-size:14px;font-family:'微软雅黑','宋体','Tahoma','SimSun','Arial';">
					<option value="desc">降序</option>
					<option value="asc">升序</option>		
				</select>

			</div>

			<div class="cust_s_text_1">
				显示数量:
			</div>
			<div class="cust_s_text_1">
				<select id="show_num" style="width:80px;height:30px;line-height:30px;margin:10px 0 0 0;font-size:14px;font-family:'微软雅黑','宋体','Tahoma','SimSun','Arial';">
					<option value="30">30</option>
					<option value="50">50</option>
					<option value="100">100</option>
					<option value="all">全部</option>
				
				</select>

			</div>
			<!--[if ie6]> 分割 <![endif]-->
			<div class="cust_s_fg_1">
			</div>
			<!--[if ie6]> 按钮 <![endif]-->
			<div class="pub_button_1 cust_top_menu_button_1" id="cust_button_query">
				查询
			</div>
			<!--[if ie6]> 按钮 <![endif]-->
			<div class="pub_button_1 cust_top_menu_button_1" id="cust_button_add_cust">
				增加客户
			</div>
		</div>


		<!--[if ie6]> 封住滚动条 <![endif]-->
		<div class="cust_table_sc_a" id="cust_table_sc_wai">

			<!--[if ie6]> 表头滚动条 <![endif]-->
			<div class="cust_table_sc_b" id="cust_table_top_d">
				<!--[if ie6]> 表头 <![endif]-->
				<div class="pub_top_1 cust_table_top_body" >
					<!--[if ie6]> 字段 <![endif]-->
					<div class="cust_table_top_text_1" style="width:100px;">
						客户类型
					</div>
					<!--[if ie6]> 表格分割线竖线 <![endif]-->
					<div class="pub_table_s_1">
					</div>
					<!--[if ie6]> 字段 <![endif]-->
					<div class="cust_table_top_text_1" style="width:150px;">
						姓名
					</div>
					<!--[if ie6]> 表格分割线竖线 <![endif]-->
					<div class="pub_table_s_1">
					</div>
					<div class="cust_table_top_text_1" style="width:200px;">
						公司
					</div>
					<!--[if ie6]> 表格分割线竖线 <![endif]-->
					<div class="pub_table_s_1">
					</div>
					<div class="cust_table_top_text_1" style="width:150px;">
						职务
					</div>
					<!--[if ie6]> 表格分割线竖线 <![endif]-->
					<div class="pub_table_s_1">
					</div>
					<div class="cust_table_top_text_1" style="width:150px;">
						手机号码
					</div>
					<!--[if ie6]> 表格分割线竖线 <![endif]-->
					<div class="pub_table_s_1">
					</div>
					<div class="cust_table_top_text_1" style="width:150px;">
						座机号码
					</div>
					<!--[if ie6]> 表格分割线竖线 <![endif]-->
					<div class="pub_table_s_1">
					</div>
					<div class="cust_table_top_text_1" style="width:150px;">
						传真号码
					</div>
					<!--[if ie6]> 表格分割线竖线 <![endif]-->
					<div class="pub_table_s_1">
					</div>
					<div class="cust_table_top_text_1" style="width:150px;">
						工作邮箱
					</div>
					<!--[if ie6]> 表格分割线竖线 <![endif]-->
					<div class="pub_table_s_1">
					</div>
					<div class="cust_table_top_text_1" style="width:150px;">
						拜访记录
					</div>
					<!--[if ie6]> 表格分割线竖线 <![endif]-->
					<div class="pub_table_s_1">
					</div>
					<div class="cust_table_top_text_1" style="width:150px;">
						拜访总开销
					</div>
					<!--[if ie6]> 表格分割线竖线 <![endif]-->
					<div class="pub_table_s_1">
					</div>
				</div>

			</div>

		</div>




<!--[if ie6]>  <![endif]-->





		<!--[if ie6]> 数据显示 <![endif]-->
		<div class="cust_show" id="cust_show_body" >
			<iframe class="cust_show_iframe" src="cust_iframe_show.php" id="cust_show_iframe">
				
			</iframe>
		</div>




	</div>


</body>
</html>